package rocks.georgik.sdlapp;

import android.util.Log;

public class Ffmpeg {
    // 这边的加载动态库的顺序也是由规定的，必须将被调用者放在面，没有调用的放在后面
    static {
        System.loadLibrary("main-lib");
    }

    static public void playVideo(final Object surface, final String path){

        new Thread(new Runnable() {
            @Override
            public void run() {
                Log.i("Ffmpeg play start", path);
                play(surface, path);
            }
        }).start();
    }

    public void setPlayPath(final String path){
        Log.i("setPlayPath start", "******************");
        //setpath(path);
    }

    static public native int setpath(String path);
    static public native int play(Object surface, String path);
}